// 工具接口的调用
let Mock = require("mockjs");
import base from "@/utils/global.params.js";
import region from "@/mock/tool/util.region.js"
import tool from "@/mock/tool/util.tool.js"

// 区号列表
Mock.mock(base.baseUrl + "/util/regionlist", "post", (req, res) => {
    return {
        code: 200,
        msg: "区号加载完成",
        data: region,
    };  
    
});
// 手机验证码
Mock.mock(base.baseUrl + "/util/telcode", "post", (req, res) => {
    return {
        code: 200,
        msg: "您的手机验证码已发送成功，请注意查收",
        data: {
            code:base.utilCode.telCode
        },
    };  
    
});
// 区号列表
Mock.mock(base.baseUrl + "/util/emailcode", "post", (req, res) => {
    return {
        code: 200,
        msg: "邮箱验证码发送成功，请注意查收",
        data: {
            code:base.utilCode.telCode
        },
    };  
    
});
// 支持交易的计价单位
Mock.mock(base.baseUrl + "/util/numeraire", "post", (req, res) => {
    return {
        code: 200,
        msg: "支持交易的计价单位加载成功",
        data: tool.numeraire,
    };  
    
});